<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	// 获得本项目的地址(例如: http://localhost:8080/MyApp/)赋值给basePath变量
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	// 将 "项目路径basePath" 放入pageContext中，待以后用EL表达式读出。
	pageContext.setAttribute("basePath",basePath);
%>
<form action="${param.action}" method="post" id="id_cade_form">
	<input type="hidden" name="id" value="${model.id}">
	<div class="custom-form">
		<ul>
			<li><span>姓名：</span><input name="cade.id" type="text"  class="easyui-combogrid" data-options="
			value : '${model.cade.id}',	
			width : 148,
			panelWidth : 650,
			idField : 'id',
			textField : 'name',
			url : 'hrm/idCade/page?sort=idNo&isUsed=false&id=${model.cade.id}',
			pagination : true,
			pageSize : 10,
			pageList : [ 10, 20, 50 ],
			search : {
				position : 'bottom'
			}, 
        	onShowPanel:function(){
        		$(this).combogrid('grid').datagrid('search.init');
        	},
			columns : [ [{
				field:'id',
				title:'id',
				hidden: true,
				width:150			
			} , {
				field:'idNo',
				title:'身份证号',
				width:150			
			} , {
				field:'name',
				title:'姓名',
				width:150			
			} , {
				field:'sex',
				title:'性别',
				width:150			
			} , {
				field:'nation',
				title:'民族',
				width:150			
			} , {
				field:'born',
				title:'生日',
				width:150			
			} , {
				field:'address',
				title:'地址',
				width:150			
			} , {
				field:'userLifeB',
				title:'有效期起',
				width:150			
			} , {
				field:'userLifeE',
				title:'有效期止',
				width:150			
			} , {
				field:'police',
				title:'发证机关',
				width:150			
			}] ],icons:[clearInput_icon]
 			" /></li>
			<li><span>学号：</span><input name="stuNo" class="easyui-textbox"  value="${model.stuNo}" data-options="required:true"/></li>
			<li><span>班级：</span><input  name="banji.id" type="text" class="easyui-combotree" value="${model.banji.id }" data-options="required:true,url:'student/class/banjiCombo',icons:[clearInput_icon],onBeforeSelect:function(node){return $(this).tree('isLeaf',node.target);}" /></li>
			<li><span>职务：</span><input  name="duty" type="text" class="easyui-textbox" value="${model.duty}"  /></li>
			<li><span>QQ号码：</span><input name="qq" type="text" class="easyui-textbox" value="${model.qq}"></li>
			<li><span>地址：</span><input name="address" type="text" class="easyui-textbox" value="${model.address}"></li>
			<li><span>电话：</span><input name="phone" class="easyui-textbox" value="${model.phone}"></li>
			<li><span>人员种类：</span><input name="status.id" type="text" class="easyui-combobox"
				data-options="url:'hrm/dic/employeeStatus/comboBox',
                    method:'get',
                    valueField:'id',
                    textField:'name'" value="${model.status.id}" /></li>
			<li><span>是否在校：</span><input name="isUsed" type="text"  value="1" class="easyui-combotree" data-options="required:true,data:[{id:1,text:'是'},{id:0,text:'否'}],panelwidth:'auto'" /></li>
		</ul>
	</div>
</form>
